<?php
    $friend_topics = $this->friend_topics;
   // echo '<pre>';
   // print_r($friend_topics);
?>

<ul class="carousel">
    <?php foreach($friend_topics as $topic){ ?>
    <li class="testimonial">
        <a href="/topic/detail/<?php echo $topic['topic_id']; ?>">
        <div class="testimonials message_item">
            <div class="message_author">
                <div class="avatar">
                    <img src="<?php echo $topic['topic_img']; ?>">
                </div>
                <div class="info">
                    <h5>
                        <?php
                            echo '['.Velacolib\Utility\Utility::getProductType($topic['topic_type']).']';
                        ?>

                            <?php        //print_r($info);
                                echo $topic['topic_title'];
                            ?>

                    </h5>
                    <span><?php echo  Velacolib\Utility\Utility::getLocationArray($topic['topic_location']); ?></span>
                    <span><?php echo $topic['user_name']; ?></span>
                    <span><?php echo $topic['topic_create_date']; ?></span>
                </div>
            </div>
            <div class="message_content">
                <?php echo $topic['short_description']; ?>
            </div>
        </div>
        </a>
    </li>
    <?php } ?>
</ul>